package com.njwb.day01;

import java.util.Scanner;

public class xingqi {
    public static void main(String[] args) {
        Scanner cs=new Scanner(System.in);
        System.out.println("请输入星期数：");
        System.out.print("星期");
        int x=cs.nextInt();
        switch (x){
            case 1:
                System.out.println("星期1");
                break;
            case 2:
                System.out.println("星期2");break;
            case 3:
                System.out.println("星期3");break;
            case 4:
                System.out.println("星期4");break;
            case 5:
                System.out.println("星期5");break;
            case 6:
                System.out.println("星期6");break;
            case 7:
                System.out.println("星期7");break;
            default:
                System.out.println("不合法");break;
        }

    }
}
